package com.qfedu.pojo.req;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * (User)前台用户实体类
 *
 * @author makejava
 * @since 2022-09-27 15:45:11
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Api(value = "用户请求对象")
public class UserReq implements Serializable {
    private static final long serialVersionUID = 241660555546298211L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键新增不用填写")
    private Integer id;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名,登录和注册时必填", required = true)
    private String userName;
    /**
     * 密码
     */
    @ApiModelProperty(value = "密码,登录和注册时必填", required = true)
    private String password;
    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱,注册时必填，用于发送邮件", required = true)
    private String email;
    /**
     * 是否管理员
     */
    @ApiModelProperty(value = "用户状态，不用填")
    private Integer state;
    /**
     * 验证码
     */
    @ApiModelProperty(value = "验证码，注册时必填", required = true)
    private String code;

    private String idCard;

    private String sex;

    private String role;

    private String tel;
}

